<!DOCTYPE HTML>
<?php
	session_start();
?>
<html>
<head>
<title>Select Courses</title>
<!--script src="lib/jquery/jquery-1.3.2.js"--><!--/script-->
<!--script src="http://code.google.com/apis/gears/gears_init.js"--><!--/script-->
<!--script src="js/mainPage.js"--> <!--/script-->
<script type="text/javascript">
	/*window.onload=function(){
		var deftxt='Optional Course Number';
		var def=document.getElementById('def');
		def.onfocus = function(){
			this.style.color='#222';
			this.value=(this.value==deftxt)?'':this.value;
		}
		def.onblur= function(){
			if (this.value==''){
				this.value=deftxt;
				this.style.color='#999';
			}
		else this.value;
		}
		def.focus();
		def.blur();
	}*/
	function validateForm() {
	   var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	   var form = document.forms["theForm"];
	   var address = form.elements["email"].value;
	   if(reg.test(address) == false) {
	      alert('Invalid Email Address');
	      return false;
	   }
	   var newPwd = form.elements["newPwd"].value;
	   if (newPwd.length < 8 || newPwd.length > 16){
		   alert('Password must be between 8 and 16 characters');
		   return false;
	   }
		   
	}
	var counter = 1;
	var limit = 10;
	function addInput(divName){
		 if (counter == limit)  {
			  alert("You have reached the limit of adding " + counter + " courses");
		 }
		 else {
			  var newdiv = document.createElement('div');
			  newdiv.innerHTML = 
				"<select name='subjects[]'>"+
				"<OPTION>Course Subjects</option>"+
				"<OPTION VALUE='ACC'>Accounting </OPTION>"+
				"<OPTION VALUE='AS'>Aerospace Studies</oPTION>"+
				"<OPTION VALUE='ASL'>Aerospace Studies Lab</option>"+
				"<OPTION VALUE='ART'>Art</option>"+
				"<OPTION VALUE='PHBS'>Behavioral Health Prom & Edcn</option>"+
				"<OPTION VALUE='BIO'>Biology</option>"+
				"<OPTION VALUE='BIOL'>Biology Lab</option>"+
				"<OPTION VALUE='BPD'>Business & Prof. Development</option>"+
				"<OPTION VALUE='CHEM'>Chemistry</option>"+
				"<OPTION VALUE='CHML'>Chemistry Lab</option>"+
				"<OPTION VALUE='CIV'>Civil Engineering</option>"+
				"<OPTION VALUE='CIVL'>Civil Engineering Lab</option>"+
				"<OPTION VALUE='CRR'>Commercial Recreation & Resorts</option>"+
				"<OPTION VALUE='FBL'>Communication Skills for FBL</option>"+
				"<OPTION VALUE='CMD'>Communicative Disorders</option>"+
				"<OPTION VALUE='CPE'>Computer Engineering</option>"+
				"<OPTION VALUE='CPEL'>Computer Engineering Lab</option>"+
				"<OPTION VALUE='CSC'>Computer Science</option>"+
				"<OPTION VALUE='CSCL'>Computer Science Lab</option>"+
				"<OPTION VALUE='COUN'>Counseling</option>"+
				"<OPTION VALUE='CJ'>Criminal Justice</option>"+
				"<OPTION VALUE='EDCI'>Curriculum and Instruction</option>"+
				"<OPTION VALUE='DR'>Drama</option>"+
				"<OPTION VALUE='DRL'>Drama Lab</option>"+
				"<OPTION VALUE='SE'>Driver's Education</option>"+
				"<OPTION VALUE='ECO'>Economics</option>"+
				"<OPTION VALUE='ETEC'>Education Technology</option>"+
				"<OPTION VALUE='EDAD'>Educational Admin & Supervision</option>"+
				"<OPTION VALUE='EMT'>Emergency Management</option>"+
				"<OPTION VALUE='EN'>Engineering</option>"+
				"<OPTION VALUE='ENL'>Engineering Lab</option>"+
				"<OPTION VALUE='ENG'>English</option>"+
				"<OPTION VALUE='ENTR'>Entrepreneurship Studies</option>"+
				"<OPTION VALUE='ENV'>Environmental Science</option>"+
				"<OPTION VALUE='ENVL'>Environmental Science Lab</option>"+
				"<OPTION VALUE='EDHE'>Executive Ph.D.</option>"+
				"<OPTION VALUE='FIN'>Finance</option>"+
				"<OPTION VALUE='EDFL'>Foundation & Leadership</option>"+
				"<OPTION VALUE='FR'>French</option>"+
				"<OPTION VALUE='GB'>General Business</option>"+
				"<OPTION VALUE='ETD'>General Engineering Technology</option>"+
				"<OPTION VALUE='SCI'>General Science</option>"+
				"<OPTION VALUE='SCIL'>General Science Lab</option>"+
				"<OPTION VALUE='GNST'>General Studies</option>"+
				"<OPTION VALUE='GEOG'>Geography</option>"+
				"<OPTION VALUE='GR'>German</option>"+
				"<OPTION VALUE='ITHM'>Hazardous Waste Management</option>"+
				"<OPTION VALUE='HE'>Health</option>"+
				"<OPTION VALUE='HCA'>Health Care Administration</option>"+
				"<OPTION VALUE='PHPM'>Health Policy & Management</option>"+
				"<OPTION VALUE='HIST'>History</option>"+
				"<OPTION VALUE='HON'>Honor Course</option>"+
				"<OPTION VALUE='ITD'>Industrial Drawing</option>"+
				"<OPTION VALUE='ITE'>Industrial Electricity</option>"+
				"<OPTION VALUE='ITEL'>Industrial Electricity Lab</option>"+
				"<OPTION VALUE='ITMA'>Industrial Management</option>"+
				"<OPTION VALUE='ITMF'>Industrial Manufacturing</option>"+
				"<OPTION VALUE='IT'>Industrial Technology</option>"+
				"<OPTION VALUE='IPAR'>International Program Arabic</option>"+
				"<OPTION VALUE='IPE'>International Program Elective</option>"+
				"<OPTION VALUE='IPKO'>International Program Korean</option>"+
				"<OPTION VALUE='IPSW'>International Program Swahili</option>"+
				"<OPTION VALUE='IPTU'>International ProgramTurkish</option>"+
				"<OPTION VALUE='LS'>Library Science</option>"+
				"<OPTION VALUE='LING'>Linguistics</option>"+
				"<OPTION VALUE='MNGT'>Management</option>"+
				"<OPTION VALUE='CH'>Mandarin Chinese</option>"+
				"<OPTION VALUE='MKT'>Marketing</option>"+
				"<OPTION VALUE='MC'>Mass Communications</option>"+
				"<OPTION VALUE='MATH'>Math</option>"+
				"<OPTION VALUE='MET'>Meteorology</option>"+
				"<OPTION VALUE='METL'>Meteorology Lab</option>"+
				"<OPTION VALUE='MS'>Military Science</option>"+
				"<OPTION VALUE='MUS'>Music</option>"+
				"<OPTION VALUE='MUSD'>Music-applied sec piano</option>"+
				"<OPTION VALUE='MUSK'>Music-band</option>"+
				"<OPTION VALUE='MUSB'>Music-bassoon</option>"+
				"<OPTION VALUE='MUBE'>Music-brasswind ensemble</option>"+
				"<OPTION VALUE='MUSG'>Music-choir</option>"+
				"<OPTION VALUE='MUSQ'>Music-choral methods</option>"+
				"<OPTION VALUE='MUCH'>Music-chorale</option>"+
				"<OPTION VALUE='MUSC'>Music-clarinet</option>"+
				"<OPTION VALUE='MUSE'>Music-euphonium</option>"+
				"<OPTION VALUE='MUSF'>Music-flute</option>"+
				"<OPTION VALUE='MUSH'>Music-french horn</option>"+
				"<OPTION VALUE='MUSM'>Music-instrumental methods</option>"+
				"<OPTION VALUE='MUJE'>Music-jazz ensemble</option>"+
				"<OPTION VALUE='MUJS'>Music-jsu singers</option>"+
				"<OPTION VALUE='MUSZ'>Music-oboe</option>"+
				"<OPTION VALUE='MUSJ'>Music-orchestra</option>"+
				"<OPTION VALUE='MUSP'>Music-percussion</option>"+
				"<OPTION VALUE='MUPE'>Music-percussion ensemble</option>"+
				"<OPTION VALUE='MUSX'>Music-saxophone</option>"+
				"<OPTION VALUE='MUSL'>Music-secondary voice</option>"+
				"<OPTION VALUE='MUSY'>Music-sight Singing</option>"+
				"<OPTION VALUE='MUTE'>Music-string ensemble</option>"+
				"<OPTION VALUE='MUSS'>Music-stringbass</option>"+
				"<OPTION VALUE='MUSR'>Music-trombone</option>"+
				"<OPTION VALUE='MUST'>Music-trumpet</option>"+
				"<OPTION VALUE='MUSU'>Music-tuba</option>"+
				"<OPTION VALUE='MUSA'>Music-viola</option>"+
				"<OPTION VALUE='MUSN'>Music-violin</option>"+
				"<OPTION VALUE='MUSV'>Music-voice</option>"+
				"<OPTION VALUE='MUWE'>Music-woodwind ensemble</option>"+
				"<OPTION VALUE='PHIL'>Philosophy</option>"+
				"<OPTION VALUE='PE'>Physical Education</option>"+
				"<OPTION VALUE='PHY'>Physics</option>"+
				"<OPTION VALUE='PHYL'>Physics Lab</option>"+
				"<OPTION VALUE='PS'>Political Science</option>"+
				"<OPTION VALUE='CLL'>Principle Centered Leadership</option>"+
				"<OPTION VALUE='PSY'>Psychology</option>"+
				"<OPTION VALUE='PHS'>Public Health Science</option>"+
				"<OPTION VALUE='PHBI'>Public Health-Biostatistics</option>"+
				"<OPTION VALUE='PHEP'>Public Health-Epidemiology</option>"+
				"<OPTION VALUE='PPAD'>Public Policy & Administration</option>"+
				"<OPTION VALUE='RE'>Reading</option>"+
				"<OPTION VALUE='REC'>Recreation</option>"+
				"<OPTION VALUE='RHAB'>Rehab. Counseling</option>"+
				"<OPTION VALUE='SS'>Social Science</option>"+
				"<OPTION VALUE='SW'>Social Work</option>"+
				"<OPTION VALUE='SOC'>Sociology</option>"+
				"<OPTION VALUE='SP'>Spanish</option>"+
				"<OPTION VALUE='SPED'>Special Education</option>"+
				"<OPTION VALUE='SPCH'>Speech</option>"+
				"<OPTION VALUE='SPM'>Sports Management</option>"+
				"<OPTION VALUE='SC'>Strength & Conditioning</option>"+
				"<OPTION VALUE='TE'>Technology Education</option>"+
				"<OPTION VALUE='TREC'>Therapeutic Recreation</option>"+
				"<OPTION VALUE='UGST'>Undergraduate Studies</option>"+
				"<OPTION VALUE='UNIV'>University Success</option>"+
				"<OPTION VALUE='UA'>Urban Studies</option>"+
				"<OPTION VALUE='URP'>Urban and Regional Planning</option>"+
				"</select>"+
				" <input type='text' name='subjectNo[]' id='def' maxlength=3>";
			  document.getElementById(divName).appendChild(newdiv);
			  counter++;
		 }
	}
</script>
<style type="text/css">
a:link {color:#FFFFFF;}    /* unvisited link */
a:visited {color:#FF0000;} /* visited link */
a:hover {color:#FFFF00;}   /* mouse over link */
a:active {color:#FF8040;}  /* selected link */
</style>

</head>
<!--------------------------------------------------------Design part of the code---------------------------------------------->
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginheight="0" marginwidth="0" bgcolor="#000066">

<table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#000066">
  <tr>
  <td><img src="../images/jsu_banner.jpg"></td>
  </tr>
</table>

<table border="0" width="100%" bgcolor="#000000" cellspacing="0" cellpadding="0">
  <tr>
  <center><td width="100%"><font color="#FFFFFF" face="Arial" size="2"><b>D.O.R.S. Jackson State University Edition</b></font></td></center>
  <?php
	
	$JNo = $_SESSION['JNo'];
	echo "<center><td width='100%'><font color='#FFFFFF' face='Arial' size='2'><b>JSU ID: $JNo</b></font></td></center>";
  ?>
  </tr>
</table>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="18%" bgcolor="#000066" valign="top">&nbsp;


<!------------------------------------------End of Design-------------------------------------------------------->


<center>
<img src="../images/logo.jpg">
</center>

<form name="searchCourses" action="listCourses.php" method="post">
<center>
<table>
<tr>
	<td> <font face="Arial Black" color="#ffffff"><b> Choose which class you want to search for: </b></font> </td>
</tr>
<tr>
	<td> 
		<div id ="selectedCourses">
			<!-- Course Subjects -->
			<select name="subjects[]">
				<OPTION>Course Subjects</option>
				<OPTION VALUE="ACC">Accounting </OPTION>
				<OPTION VALUE="AS">Aerospace Studies</oPTION>
				<OPTION VALUE="ASL">Aerospace Studies Lab</option>
				<OPTION VALUE="ART">Art</option>
				<OPTION VALUE="PHBS">Behavioral Health Prom & Edcn</option>
				<OPTION VALUE="BIO">Biology</option>
				<OPTION VALUE="BIOL">Biology Lab</option>
				<OPTION VALUE="BPD">Business & Prof. Development</option>
				<OPTION VALUE="CHEM">Chemistry</option>
				<OPTION VALUE="CHML">Chemistry Lab</option>
				<OPTION VALUE="CIV">Civil Engineering</option>
				<OPTION VALUE="CIVL">Civil Engineering Lab</option>
				<OPTION VALUE="CRR">Commercial Recreation & Resorts</option>
				<OPTION VALUE="FBL">Communication Skills for FBL</option>
				<OPTION VALUE="CMD">Communicative Disorders</option>
				<OPTION VALUE="CPE">Computer Engineering</option>
				<OPTION VALUE="CPEL">Computer Engineering Lab</option>
				<OPTION VALUE="CSC">Computer Science</option>
				<OPTION VALUE="CSCL">Computer Science Lab</option>
				<OPTION VALUE="COUN">Counseling</option>
				<OPTION VALUE="CJ">Criminal Justice</option>
				<OPTION VALUE="EDCI">Curriculum and Instruction</option>
				<OPTION VALUE="DR">Drama</option>
				<OPTION VALUE="DRL">Drama Lab</option>
				<OPTION VALUE="SE">Driver's Education</option>
				<OPTION VALUE="ECO">Economics</option>
				<OPTION VALUE="ETEC">Education Technology</option>
				<OPTION VALUE="EDAD">Educational Admin & Supervision</option>
				<OPTION VALUE="EMT">Emergency Management</option>
				<OPTION VALUE="EN">Engineering</option>
				<OPTION VALUE="ENL">Engineering Lab</option>
				<OPTION VALUE="ENG">English</option>
				<OPTION VALUE="ENTR">Entrepreneurship Studies</option>
				<OPTION VALUE="ENV">Environmental Science</option>
				<OPTION VALUE="ENVL">Environmental Science Lab</option>
				<OPTION VALUE="EDHE">Executive Ph.D.</option>
				<OPTION VALUE="FIN">Finance</option>
				<OPTION VALUE="EDFL">Foundation & Leadership</option>
				<OPTION VALUE="FR">French</option>
				<OPTION VALUE="GB">General Business</option>
				<OPTION VALUE="ETD">General Engineering Technology</option>
				<OPTION VALUE="SCI">General Science</option>
				<OPTION VALUE="SCIL">General Science Lab</option>
				<OPTION VALUE="GNST">General Studies</option>
				<OPTION VALUE="GEOG">Geography</option>
				<OPTION VALUE="GR">German</option>
				<OPTION VALUE="ITHM">Hazardous Waste Management</option>
				<OPTION VALUE="HE">Health</option>
				<OPTION VALUE="HCA">Health Care Administration</option>
				<OPTION VALUE="PHPM">Health Policy & Management</option>
				<OPTION VALUE="HIST">History</option>
				<OPTION VALUE="HON">Honor Course</option>
				<OPTION VALUE="ITD">Industrial Drawing</option>
				<OPTION VALUE="ITE">Industrial Electricity</option>
				<OPTION VALUE="ITEL">Industrial Electricity Lab</option>
				<OPTION VALUE="ITMA">Industrial Management</option>
				<OPTION VALUE="ITMF">Industrial Manufacturing</option>
				<OPTION VALUE="IT">Industrial Technology</option>
				<OPTION VALUE="IPAR">International Program Arabic</option>
				<OPTION VALUE="IPE">International Program Elective</option>
				<OPTION VALUE="IPKO">International Program Korean</option>
				<OPTION VALUE="IPSW">International Program Swahili</option>
				<OPTION VALUE="IPTU">International ProgramTurkish</option>
				<OPTION VALUE="LS">Library Science</option>
				<OPTION VALUE="LING">Linguistics</option>
				<OPTION VALUE="MNGT">Management</option>
				<OPTION VALUE="CH">Mandarin Chinese</option>
				<OPTION VALUE="MKT">Marketing</option>
				<OPTION VALUE="MC">Mass Communications</option>
				<OPTION VALUE="MATH">Math</option>
				<OPTION VALUE="MET">Meteorology</option>
				<OPTION VALUE="METL">Meteorology Lab</option>
				<OPTION VALUE="MS">Military Science</option>
				<OPTION VALUE="MUS">Music</option>
				<OPTION VALUE="MUSD">Music-applied sec piano</option>
				<OPTION VALUE="MUSK">Music-band</option>
				<OPTION VALUE="MUSB">Music-bassoon</option>
				<OPTION VALUE="MUBE">Music-brasswind ensemble</option>
				<OPTION VALUE="MUSG">Music-choir</option>
				<OPTION VALUE="MUSQ">Music-choral methods</option>
				<OPTION VALUE="MUCH">Music-chorale</option>
				<OPTION VALUE="MUSC">Music-clarinet</option>
				<OPTION VALUE="MUSE">Music-euphonium</option>
				<OPTION VALUE="MUSF">Music-flute</option>
				<OPTION VALUE="MUSH">Music-french horn</option>
				<OPTION VALUE="MUSM">Music-instrumental methods</option>
				<OPTION VALUE="MUJE">Music-jazz ensemble</option>
				<OPTION VALUE="MUJS">Music-jsu singers</option>
				<OPTION VALUE="MUSZ">Music-oboe</option>
				<OPTION VALUE="MUSJ">Music-orchestra</option>
				<OPTION VALUE="MUSP">Music-percussion</option>
				<OPTION VALUE="MUPE">Music-percussion ensemble</option>
				<OPTION VALUE="MUSX">Music-saxophone</option>
				<OPTION VALUE="MUSL">Music-secondary voice</option>
				<OPTION VALUE="MUSY">Music-sight Singing</option>
				<OPTION VALUE="MUTE">Music-string ensemble</option>
				<OPTION VALUE="MUSS">Music-stringbass</option>
				<OPTION VALUE="MUSR">Music-trombone</option>
				<OPTION VALUE="MUST">Music-trumpet</option>
				<OPTION VALUE="MUSU">Music-tuba</option>
				<OPTION VALUE="MUSA">Music-viola</option>
				<OPTION VALUE="MUSN">Music-violin</option>
				<OPTION VALUE="MUSV">Music-voice</option>
				<OPTION VALUE="MUWE">Music-woodwind ensemble</option>
				<OPTION VALUE="PHIL">Philosophy</option>
				<OPTION VALUE="PE">Physical Education</option>
				<OPTION VALUE="PHY">Physics</option>
				<OPTION VALUE="PHYL">Physics Lab</option>
				<OPTION VALUE="PS">Political Science</option>
				<OPTION VALUE="CLL">Principle Centered Leadership</option>
				<OPTION VALUE="PSY">Psychology</option>
				<OPTION VALUE="PHS">Public Health Science</option>
				<OPTION VALUE="PHBI">Public Health-Biostatistics</option>
				<OPTION VALUE="PHEP">Public Health-Epidemiology</option>
				<OPTION VALUE="PPAD">Public Policy & Administration</option>
				<OPTION VALUE="RE">Reading</option>
				<OPTION VALUE="REC">Recreation</option>
				<OPTION VALUE="RHAB">Rehab. Counseling</option>
				<OPTION VALUE="SS">Social Science</option>
				<OPTION VALUE="SW">Social Work</option>
				<OPTION VALUE="SOC">Sociology</option>
				<OPTION VALUE="SP">Spanish</option>
				<OPTION VALUE="SPED">Special Education</option>
				<OPTION VALUE="SPCH">Speech</option>
				<OPTION VALUE="SPM">Sports Management</option>
				<OPTION VALUE="SC">Strength & Conditioning</option>
				<OPTION VALUE="TE">Technology Education</option>
				<OPTION VALUE="TREC">Therapeutic Recreation</option>
				<OPTION VALUE="UGST">Undergraduate Studies</option>
				<OPTION VALUE="UNIV">University Success</option>
				<OPTION VALUE="UA">Urban Studies</option>
				<OPTION VALUE="URP">Urban and Regional Planning</option>
			</select>
			<!--Optional course number can be chosen-->
			<input type="text" name="subjectNo[]" id="def" maxlength=3>
		</div>
		<input type="button" value="Click here to search for an additional class (max 10)" onclick="addInput('selectedCourses');">
	</td>
</tr>
<tr>
	<td> <font face="Arial Black" color="#ffffff"><b>Optionally, search by the start time and any day to list all classes during that time and day.</b></td> 
</tr>
<tr>
	<td><font face="Arial Black" color="#ffffff"><b>(Will be combined with results above unless they are left blank.)</b></td>
</tr>
<tr>
	<td>
		<select name="time">
			<option>Time</option>
			<OPTION VALUE="7:00 am">7:00am</OPTION>
			<OPTION VALUE="7:00 am">7:30am</oPTION>
			<OPTION VALUE="8:00 am">8:00am</option>
			<OPTION VALUE="8:30 am">8:30am</option>
			<OPTION VALUE="9:00 am">9:00am</option>
			<OPTION VALUE="9:30 am">9:30am</option>
			<OPTION VALUE="10:00 am">10:00am</option>
			<OPTION VALUE="10:30 am">10:30am</option>
			<OPTION VALUE="11:00 am">11:00am</option>
			<OPTION VALUE="11:30 am">11:30am</option>
			<OPTION VALUE="12:00 pm">12:00pm</option>
			<OPTION VALUE="12:30 pm">12:30pm</option>
			<OPTION VALUE="1:00 pm">1:00pm</option>
			<OPTION VALUE="1:30 pm">1:30pm</option>
			<OPTION VALUE="2:00 pm">2:00pm</option>
			<OPTION VALUE="2:30 pm">2:30pm</option>
			<OPTION VALUE="3:00 pm">3:00pm</option>
			<OPTION VALUE="3:30 pm">3:30pm</option>
			<OPTION VALUE="4:00 pm">4:00pm</option>
			<OPTION VALUE="4:30 pm">4:30pm</option>
			<OPTION VALUE="5:00 pm">5:00pm</option>
			<OPTION VALUE="5:30 pm">5:30pm</option>
			<OPTION VALUE="6:00 pm">6:00pm</option>
			<OPTION VALUE="6:30 pm">6:30pm</option>
			<OPTION VALUE="7:00 pm">7:00pm</option>
			<OPTION VALUE="7:30 pm">7:30pm</option>
		</select>
		<select name="day">
			<option>Day</option>
			<option value="M">Monday</option>
			<option value="T">Tuesday</option>
			<option value="W">Wednesday</option>
			<option value="R">Thursday</option>
			<option value="F">Friday</option>
			<option value="S">Saturday</option>
		</select>
	</td>
</tr>
	<td><input type="submit" value="Class Search"></td>
</tr>

</table>
</center>
</form>


</body>
</html>